<!DOCTYPE html>
<html lang="">

<head>
	<meta charset="utf-8" />
	<meta http-equiv="X-UA-Compatible" content="IE=edge" />
</head>
<script>
	// const uAgent = window.navigator.userAgent
	if (
		// uAgent.match(
		//     /(iPhone|Android|SymbianOS|Windows Phone|iPod|iPad|WebPage\/sidebar-semi|WebApp\/sidebar)/i
		// )
		window.outerWidth <= 600
	) {
		window.location.href = 'mobile.html'
		// window.location.href = '<%= VUE_APP_BASE_PATH %>/ego/mobile/'
	} else {
		let tenantDetail = JSON.parse(localStorage.tenantDetail || '{}')
		if (localStorage.tenantDetail && tenantDetail.data.tenant_auth && tenantDetail.data.tenant_auth.app_launcher) {
			window.location.href = '<%= VUE_APP_BASE_PATH %>/apps/desktop/multipleTabs'
		} else {
			window.location.href = 'desktop.html'
		}
		// window.location.href = '<%= VUE_APP_BASE_PATH %>/apps/desktop/multipleTabs'
	}
</script>

</html>